import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import cn.hutool.setting.dialect.Props;
import codeGeneration.CodeGenerateUtils;
import codeGeneration.Config;

import java.nio.charset.StandardCharsets;

public class App {
    private static Log log = LogFactory.get();
    private static Props properties = Props.getProp("config.yml", StandardCharsets.UTF_8);

    public static void main(String[] args) throws Exception {
        Config config = properties.toBean(Config.class);
        log.info("load config: {}", config);
        CodeGenerateUtils generateUtils = new CodeGenerateUtils(config);
        generateUtils.generate();
    }
}
